public class score_sort {
    public static void main(String[] args) {

        int per[] = new int[40];
        int j;
        int sum = 0;
        int evg;
        for(j = 0;j < 40;j++)
        {
                   per[j] = (int) (Math.random()*100);
                   sum+=per[j];
        }
        evg = sum/40;
        int count = 0;
        System.out.println(evg);
        for(j = 0;j < 40;j++)
        {
            if(per[j]<evg)
            {
                count++;
            }
        }








    }
}
